package com.pollux.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @TableName level
 */
public class Level implements Serializable {

    /**
     * 主键
     */
    @NotNull(message = "[主键]不能为空")
    @Schema(name = "id", description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    /**
     * 用户id
     */
    @NotNull(message = "[用户id]不能为空")
    @Schema(name = "userId", description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer userId;

    /**
     * 称号
     */
    @NotNull(message = "[称号]不能为空")
    @Schema(name = "chenghao", description = "称号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String chenghao;

    /**
     * 图标名
     */
    @NotNull(message = "[图标名]不能为空")
    @Schema(name = "icon", description = "图标名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String icon;

    /**
     * 本级需要的经验值
     */
    @Schema(name = "needExperienceValue", description = "本级需要的经验值")
    private Integer needExperienceValue;
}
